package com.shop.cereshop.app.dao.buyer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.app.page.buyer.UserDetailVO;
import com.shop.cereshop.commons.domain.buyer.CereBuyerRelationship;
import com.shop.cereshop.commons.domain.buyer.CereBuyerVisitor;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

@Mapper
public interface CereBuyerRelationshipDAO extends BaseMapper<CereBuyerRelationship> {
//    Void save(CereBuyerRelationship relationship);

    void updateStatus(CereBuyerRelationship cereBuyerRelationship);

   UserDetailVO selectUserInfo(@Param("userId")String userId);

    CereBuyerVisitor selectByVisitorAndVisited(@Param("visitorUserId") Long visitorUserId,@Param("visitedUserId") Long visitedUserId);

    CereBuyerRelationship selectUserRelationship(@Param("concernId") Long concernId, @Param("publishPostUserId") Long publishPostUserId);


    Long findUserCommentLikeCount(Long buyerUserId);
}

